import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/index'
import cantuan from '@/components/cantuan'
import kaituan from '@/components/kaituan'
import tuandetail from '@/components/tuandetail'
import availableshop from '@/components/availableshop'
import bind from '@/components/bind'
import register from '@/components/register'
import Notfound from '@/components/notfound'
import myVoucher from "@/components/myVoucher"
import voucherDetail from "@/components/voucherDetail"
import donation from "@/components/donation"
import test from "@/components/test"
import tuanshare from "@/components/tuanshare"
import clear from "@/components/clear"
import test1 from "@/components/test1"

var rootdocument = '/grouppurchase';

Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: rootdocument+'/',
      meta:{
        title:'爱拼才美丽'
      },
      component:Index
    },
    {
      path:rootdocument+'/cantuan',
      meta:{
        title:'爱拼才美丽'
      },
      component:cantuan
    },
    {
      path:rootdocument+'/kaituan',
      meta:{
        title:'爱拼才美丽'
      },
      component:kaituan
    },
    {
      path:rootdocument+"/availableshop",
      meta:{
        title:'爱拼才美丽'
      },
      component:availableshop
    },
    {
      path:rootdocument+'/tuandetail',
      meta:{
        title:'爱拼才美丽'
      },
      component:tuandetail
    },
    {
      path:rootdocument+"/bind",
      meta:{
        title:'爱拼才美丽'
      },
      component:bind
    },
    {
      path:rootdocument+"/register",
      meta:{
        title:'爱拼才美丽'
      },
      component:register
    },
    {
      path:rootdocument+"/notfound",
      meta:{
        title:'爱拼才美丽'
      },
      component:Notfound
    },
    {
      path:rootdocument+"/myVoucher",
      meta:{
        title:'爱拼才美丽'
      },
      component:myVoucher
    },
    {
      path:rootdocument+"/voucherdetail",
      meta:{
        title:'爱拼才美丽'
      },
      component:voucherDetail
    },
    {
      path:rootdocument+"/donation",
      meta:{
        title:'爱拼才美丽'
      },
      component:donation
    },
    {
      path:rootdocument+"/test",
      meta:{
        title:'爱拼才美丽'
      },
      component:test
    },
    {
      path:rootdocument+"/tuanshare",
      meta:{
        title:'爱拼才美丽'
      },
      component:tuanshare
    },
    {
      path:rootdocument+"/clear",
      meta:{
        title:'爱拼才美丽'
      },
      component:clear
    },
    {
      path:rootdocument+"/test1",
      meta:{
        title:'爱拼才美丽'
      },
      component:test1
    },
  ]
})
